package com.shortlink.server.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shortlink.server.dao.entity.ShortLinkStatsRecordDO;
import com.shortlink.server.dao.entity.ShortLinkTodayBaseStatsDO;
import com.shortlink.server.dto.shortlinkmapper.ShortLinkReqDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * 短链接监控访问记录持久层
 *
 * @author wp
 */
@Mapper
public interface ShortLinkStatsRecordMapper extends BaseMapper<ShortLinkStatsRecordDO> {
    List<ShortLinkTodayBaseStatsDO> batchGetShortLinkBaseStats(@Param("shortLinks") List<ShortLinkReqDTO> shortLinks, @Param("date") LocalDate date);
}
